package com.tt.controller;

import com.tt.entity.vo.EmissionLineVO;
import com.tt.service.EmissionLineService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @version 1.0
 * @auther sugarttt
 * @since 2022-11-13 23:06:00
 */
@RestController
public class EmissionLineController {

    private final EmissionLineService emissionLineService;

    public EmissionLineController(EmissionLineService emissionLineService) {
        this.emissionLineService = emissionLineService;
    }

    @GetMapping("/getEmissionLine")
    public EmissionLineVO getEmissionLine(String beginYear, String endYear, Integer provinceId) {
        return emissionLineService.getEmissionLine(beginYear, endYear, provinceId);
    }
}
